package Judge.Login.Controller;

import java.awt.event.*;

import Judge.Login.View.*;
import Judge.Login.Model.*;
import javax.swing.*;

public class ExitButtonListener implements ActionListener
{
	public ExitButtonListener(JudgeLoginView view, JudgeLoginModel model)
	{
	    this.view = view;
	    this.model = model;
	}
    public void actionPerformed(ActionEvent event)
    {
       int choice = JOptionPane.showConfirmDialog(null, "Do you want to exit?");
       if (choice == JOptionPane.YES_OPTION)
       {
    	   System.exit(0);
       }
    }
    
    private JudgeLoginView view;
    private JudgeLoginModel model;
}
